﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("EXP_CUSTOMEROTHER")]

    public class CustomerOtherModel:NormalModel
    {
        private string _code;
        private long _employeeid;
        private long _departmentid;
        private int _type;
        private long _customerid;
        private decimal _amount;
        private string _docdate;
        private string _note;
        private long _title;
        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }

        public virtual string DocDate
        {
            get { return _docdate; }
            set
            {
                if (_docdate == value)
                    return;
                _docdate = value;
                if (!PropertyUpdated.Contains("DocDate"))
                    PropertyUpdated.Add("DocDate");
            }
        }

        public virtual string Note
        {
            get { return _note; }
            set
            {
                if (_note == value)
                    return;
                _note = value;
                if (!PropertyUpdated.Contains("Note"))
                    PropertyUpdated.Add("Note");
            }
        }

        public virtual int Type
        {
            get { return _type; }
            set
            {
                if (_type == value)
                    return;
                _type = value;
                if (!PropertyUpdated.Contains("Type"))
                    PropertyUpdated.Add("Type");
            }
        }

        public virtual decimal Amount
        {
            get { return _amount; }
            set
            {
                if (_amount == value)
                    return;
                _amount = value;
                if (!PropertyUpdated.Contains("Amount"))
                    PropertyUpdated.Add("Amount");
            }
        }

        public virtual long DepartmentId
        {
            get { return _departmentid; }
            set
            {
                if (_departmentid == value)
                    return;
                _departmentid = value;
                if (!PropertyUpdated.Contains("DepartmentId"))
                    PropertyUpdated.Add("DepartmentId");
            }
        }

        public virtual long CustomerId
        {
            get { return _customerid; }
            set
            {
                if (_customerid == value)
                    return;
                _customerid = value;
                if (!PropertyUpdated.Contains("CustomerId"))
                    PropertyUpdated.Add("CustomerId");
            }
        }
        public virtual long TitleId
        {
            get { return _title; }
            set
            {
                if (_title == value)
                    return;
                _title = value;
                if (!PropertyUpdated.Contains("TitleId"))
                    PropertyUpdated.Add("TitleId");
            }
        }
        public virtual long EmployeeId
        {
            get { return _employeeid; }
            set
            {
                if (_employeeid == value)
                    return;
                _employeeid = value;
                if (!PropertyUpdated.Contains("EmployeeId"))
                    PropertyUpdated.Add("EmployeeId");
            }
        }
    }
}
